package cn.com.srit.service;

import cn.com.srit.entity.ServiceEntity;
import cn.com.srit.util.PageDetail;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ServiceService {
    List<ServiceEntity> findAll(ServiceEntity template);

    Page<ServiceEntity> findAllWithPage(ServiceEntity template, PageDetail page);

    String save(ServiceEntity service);

    String delete(String[] ids);

    Integer countByCodeAndIdNot(String id, String code);

    Integer countByNameAndIdNot(String id, String name);

    Integer countByPathAndIdNot(String id, String path);

    Integer countByUrlAndIdNot(String id, String url);

    Integer countByRegistryIdAndIdNot(String id, String registryId);
}
